/**
 * 
 */
package com.autosalon.ui.spravaPujcek.action;

import com.autosalon.ui.spravaPujcek.SpravaPujcek;
import com.autosalon.ui.spravaPujcek.state.SpravaPujcekStateHolder;
import com.vaadin.ui.Button.ClickEvent;

/**
 * @author Ragisel
 *
 */
public class NewPujckaAction extends AbstractSpravaPujcekAction{

	private final int id = 3;
	
	public NewPujckaAction(SpravaPujcek spravaPujcek) {
		super(spravaPujcek);
	}

	@Override
	public void buttonClick(ClickEvent event) {

		SpravaPujcekStateHolder.setState(SpravaPujcekStateHolder.NEW_PUJCKA_STATE, id, spravaPujcek);
	}

	

}
